package com.yaozheng.vocationaltraining.fragment;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.ViewById;

import android.content.Intent;
import android.widget.Button;
import android.widget.TextView;

import com.yaozheng.vocationaltraining.R;
import com.yaozheng.vocationaltraining.activity.NewsListActivity_;
import com.yaozheng.vocationaltraining.activity.TrainingBulletinActivity_;

/**
 * 四大新闻
 * 
 * @author Administrator
 * 
 */
@EFragment(R.layout.fragment_news)
public class NewsMenuFragment extends BaseFragment {
	Button hisStoneMountainBut, thirtySixBut, carSolutionsPaodingBut,
			trainingBulletinBut;
	@ViewById
	TextView headTitleText;

	@AfterViews
	public void initView() {
		headTitleText.setText("新闻");
	}

	/**
	 * 进入新闻列表页面
	 */
	@Click({ R.id.hisStoneMountainBut, R.id.carSolutionsPaodingBut,
			R.id.trainingBulletinBut })
	public void enterNewsList() {
		getActivity().startActivity(
				new Intent(getActivity(), NewsListActivity_.class));
	}

	@Click(R.id.thirtySixBut)
	public void enterTrainingBulletin() {
		getActivity().startActivity(
				new Intent(getActivity(), TrainingBulletinActivity_.class));
	}
}
